home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / gr564s.zip / SRC / MS / NNT.MK < prev    next >
Makefile  |  1993-09-08  |  6KB  |  201 lines

  1. # $Id: Makefile,v 5.20 1992/07/28 16:12:44 eggert Exp $
  2. # Copyright (C) 1982, 1988, 1989 Walter Tichy
  3. # Copyright 1990, 1991, 1992 by Paul Eggert
  4. #   Distributed under license by the Free Software Foundation, Inc.
  5. #
  6. # This file is part of RCS.
  7. #
  8. # RCS is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2, or (at your option)
  11. # any later version.
  12. #
  13. # RCS is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with RCS; see the file COPYING.  If not, write to
  20. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21. #
  22. # Report problems and direct all questions to:
  23. #
  24. #    rcs-bugs@cs.purdue.edu
  25. #
  26.  
  27. # default target
  28. default : all
  29.  
  30. # See README for more information on the configuration section.
  31. # ----- start of configuration section -----
  32. # nmake makefile definitions for Windows/NT
  33.  
  34. #    $Id$
  35.  
  36. !IF "$(DEBUG)" == "Y"
  37. CC_DEBUG = -Zi -Od
  38. LD_DEBUG = -Zi
  39. !ELSE
  40. CC_DEBUG = -Ox
  41. LD_DEBUG =
  42. !ENDIF
  43.  
  44. BINDIR = ..\bin
  45.  
  46. CC = cl -nologo -D__NT__=1
  47. LINK = cl -nologo $(LD_DEBUG)
  48. LDLIBS = advapi32.lib
  49.  
  50. CFLAGS = -Dbad_creat0=1 -Ims -D__MSC__=1 $(CC_DEBUG) -Zp
  51.  
  52. INSTALL = copy
  53.  
  54. # You may have to change the following line; there's no standard.
  55. LIB = d:\msvcnt\lib\$(s)
  56.  
  57. LOGIN_FLAGS =
  58.  
  59. OTHER_OBJECT = getcwdsl.obj login$(OS).obj spawnvpq.obj $(LIB)setargv.obj
  60.  
  61. REMOVE = -del
  62.  
  63.  
  64. # makefile definitions for MS-DOS and OS/2
  65.  
  66. #    $Id: ms.mkh,v 1.7 1992/07/28 16:12:44 eggert Exp $
  67.  
  68. # empty string to avoid makefile misparsing of \ at line end with buggy makes
  69. s =
  70.  
  71. TESTPREFIX = ms\$(s)
  72.  
  73. o = .obj
  74. x = .exe
  75.  
  76. conf.h : ms\conf.h
  77.     copy ms\conf.h .
  78.     echo /* */ >> $@
  79.  
  80. login$(OS)$(o) : ms\login$(OS).c
  81.     $(CC) $(CFLAGS) $(LOGIN_FLAGS) -c ms\login$(OS).c
  82.  
  83. dirent$(o) : ms\dirent.c
  84.     $(CC) $(CFLAGS) -c ms\dirent.c
  85.  
  86. getcwdsl$(o) : ms\getcwdsl.c
  87.     $(CC) $(CFLAGS) -c ms\getcwdsl.c
  88.  
  89. spawnvpq$(o) : ms\spawnvpq.c
  90.     $(CC) $(CFLAGS) -c ms\spawnvpq.c
  91.  
  92. utime$(o) : ms\utime.c
  93.     $(CC) $(CFLAGS) $(LOGIN_FLAGS) -c ms\utime.c
  94.  
  95. # On non-Unix hosts you must manually create and edit conf.h from conf.heg.
  96.  
  97. # ----- end of configuration section -----
  98. # You shouldn't have to change anything past this point.
  99.  
  100.  
  101. # Avoid brain damage in some versions of 'make'.
  102. SHELL = /bin/sh
  103.  
  104. # all commands
  105. RCSCOMMANDS = ci$(x) co$(x) ident$(x) merge$(x) \
  106.     rcs$(x) rcsclean$(x) rcsdiff$(x) rcsmerge$(x) rlog$(x)
  107.  
  108. all : $(RCSCOMMANDS)
  109.  
  110. install : all
  111.     $(INSTALL) ci$(x) $(DESTBINDIR)
  112.     $(INSTALL) co$(x) $(DESTBINDIR)
  113.     $(INSTALL) ident$(x) $(DESTBINDIR)
  114.     $(INSTALL) merge$(x) $(DESTBINDIR)
  115.     $(INSTALL) rcs$(x) $(DESTBINDIR)
  116.     $(INSTALL) rcsclean$(x) $(DESTBINDIR)
  117.     $(INSTALL) rcsdiff$(x) $(DESTBINDIR)
  118.     $(INSTALL) rcsmerge$(x) $(DESTBINDIR)
  119.     $(INSTALL) rlog$(x) $(DESTBINDIR)
  120.  
  121. # Install RCS and (if applicable) GNU diff before running these tests.
  122. # To test RCS before installing it, see README.
  123. RCSTEST = PATH=$(BINDIR):$(DIFFPREFIX).:$$PATH sh $(TESTPREFIX)rcstest
  124. installtest :
  125.     $(RCSTEST)
  126. installdebug :
  127.     $(RCSTEST) -v
  128.  
  129. clean :
  130.     $(REMOVE) a.* *$(o) conf.h conf.err $(RCSCOMMANDS) rcsvers.c
  131.  
  132.  
  133. rcsvers.c : ../Version
  134.     ( \
  135.         echo '#include "rcsbase.h"' && \
  136.         echo 'char const RCS_version_string[] = "'"`cat $?`"'";' \
  137.     ) >$@
  138.  
  139. ci = ci$(o) rcslex$(o) rcssyn$(o) rcsgen$(o) rcsedit$(o) rcskeys$(o) rcsmap$(o) \
  140.     rcsrev$(o) rcsutil$(o) rcsvers$(o) rcsfnms$(o) partime$(o) maketime$(o) rcskeep$(o) \
  141.     rcsfcmp$(o) $(OTHER_OBJECT)
  142. ci$(x) : $(ci)
  143.     $(LINK) $(ci) $(LDLIBS)
  144.  
  145. co = co$(o) rcslex$(o) rcssyn$(o) rcsgen$(o) rcsedit$(o) rcskeys$(o) rcsmap$(o) \
  146.     rcsrev$(o) rcsutil$(o) rcsvers$(o) rcsfnms$(o) partime$(o) maketime$(o) rcskeep$(o) \
  147.     $(OTHER_OBJECT)
  148. co$(x) : $(co)
  149.     $(LINK) $(co) $(LDLIBS)
  150.  
  151. ident = ident$(o) rcsmap$(o) $(OTHER_OBJECT)
  152. ident$(x) : $(ident)
  153.     $(LINK) $(ident) $(LDLIBS)
  154.  
  155. merge = merge$(o) merger$(o) rcsfnms$(o) rcslex$(o) \
  156.     rcsmap$(o) rcsrev$(o) rcssyn$(o) rcsutil$(o) rcsvers$(o) \
  157.     rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  158. merge$(x) : $(merge)
  159.     $(LINK) $(merge) $(LDLIBS)
  160.  
  161. rlog = rlog$(o) rcslex$(o) rcsmap$(o) rcssyn$(o) rcsrev$(o) rcsutil$(o) rcsvers$(o) \
  162.     partime$(o) maketime$(o) rcsfnms$(o) rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  163. rlog$(x) : $(rlog)
  164.     $(LINK) $(rlog) $(LDLIBS)
  165.  
  166. rcs = rcs$(o) rcslex$(o) rcssyn$(o) rcsrev$(o) rcsutil$(o) rcsvers$(o) rcsgen$(o) \
  167.     rcsedit$(o) rcskeys$(o) rcsmap$(o) rcsfnms$(o) rcskeep$(o) $(OTHER_OBJECT)
  168. rcs$(x) : $(rcs)
  169.     $(LINK) $(rcs) $(LDLIBS)
  170.  
  171. rcsclean = rcsclean$(o) rcsedit$(o) rcsfcmp$(o) rcsfnms$(o) rcsgen$(o) rcskeys$(o) dirent$(o) \
  172.     rcslex$(o) rcsmap$(o) rcsrev$(o) rcssyn$(o) rcsutil$(o) rcsvers$(o) rcskeep$(o) \
  173.     $(OTHER_OBJECT)
  174. rcsclean$(x) : $(rcsclean)
  175.     $(LINK) $(rcsclean) $(LDLIBS)
  176.  
  177. rcsdiff = rcsdiff$(o) rcsutil$(o) rcsvers$(o) rcsfnms$(o) rcsmap$(o) rcsrev$(o) rcssyn$(o) \
  178.     rcslex$(o) maketime$(o) partime$(o) rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  179. rcsdiff$(x) : $(rcsdiff)
  180.     $(LINK) $(rcsdiff) $(LDLIBS)
  181.  
  182. rcsmerge = rcsmerge$(o) merger$(o) rcsutil$(o) rcsvers$(o) rcsfnms$(o) rcsmap$(o) rcsrev$(o) \
  183.     rcssyn$(o) rcslex$(o) rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  184. rcsmerge$(x) : $(rcsmerge)
  185.     $(LINK) $(rcsmerge) $(LDLIBS)
  186.  
  187. SOURCE=    ci.c co.c ident.c maketime.c merge.c merger.c partime.c rcs.c \
  188.     rcsclean.c rcsdiff.c rcsedit.c rcsfcmp.c rcsfnms.c rcsgen.c \
  189.     rcskeep.c rcskeys.c rcslex.c rcsmap.c rcsmerge.c rcsrev.c rcssyn.c \
  190.     rcsutil.c rlog.c rcsvers.c
  191. OBJECT=    ci$(o) co$(o) ident$(o) maketime$(o) merge$(o) merger$(o) partime$(o) rcs$(o) \
  192.     rcsclean$(o) rcsdiff$(o) rcsedit$(o) rcsfcmp$(o) rcsfnms$(o) rcsgen$(o) \
  193.     rcskeep$(o) rcskeys$(o) rcslex$(o) rcsmap$(o) rcsmerge$(o) rcsrev$(o) rcssyn$(o) \
  194.     rcsutil$(o) rlog$(o) rcsvers$(o)
  195.  
  196. lint : conf.h
  197.     $(LINT) $(CC_D) -DRCS_lint=1 $(SOURCE)
  198.  
  199. conf_h = conf.h
  200. $(OBJECT) : $(conf_h) rcsbase.h
  201.